NMUX=CMPNN0, INVEN=DISABLED, CMPMD=MODE0, INMUX=DIRECT, NWPUEN=DISABLED, PMUX=CMPNP0, CMPHYP=DISABLED, PWPUEN=DISABLED, RIEN=DISABLED, FIEN=DISABLED, CMPHYN=DISABLED
Input and Module Mode
NMUX | Negative Input Select. 0 (CMPNN0): Select 1 (CMPNN1): Select 2 (CMPNN2): Select 3 (CMPNN3): Select 4 (CMPNN4): Select 5 (CMPNN5): Select 6 (CMPNN6): Select 7 (CMPNN7): Select 8 (CMPNN8): Select 9 (CMPNN9): Select 10 (CMPNN10): Select 11 (CMPNN11): Select 12 (CMPNN12): Select 13 (CMPNN13): Select 14 (CMPNN14): Select 15 (CMPNN15): Select |
PMUX | Positive Input Select. 0 (CMPNP0): Select 1 (CMPNP1): Select 2 (CMPNP2): Select 3 (CMPNP3): Select 4 (CMPNP4): Select 5 (CMPNP5): Select 6 (CMPNP6): Select 7 (CMPNP7): Select 8 (CMPNP8): Select 9 (CMPNP9): Select 10 (CMPNP10): Select 11 (CMPNP11): Select 12 (CMPNP12): Select 13 (CMPNP13): Select 14 (CMPNP14): Select 15 (CMPNP15): Select |
INMUX | Input MUX Select. 0 (DIRECT): Connects the NMUX signal to CP- and the PMUX signal to CP+. 1 (CMPP_VSS): Connects VSS to CP- and the PMUX signal to CP+. 2 (CMPP_DAC): Connects the NMUX signal to CP-, the PMUX signal to the Comparator DAC voltage reference, and the DAC output to CP+. 3 (CMPN_DAC): Connects the PMUX signal to CP+, the NMUX signal to the Comparator DAC voltage reference, and the DAC output to CP-. |
CMPMD | Comparator Mode. 0 (MODE0): Mode 0 (fastest response time, highest power consumption). 1 (MODE1): Mode 1. 2 (MODE2): Mode 2. 3 (MODE3): Mode 3 (slowest response time, lowest power consumption). |
FIEN | Falling Edge Interrupt Enable. 0 (DISABLED): Disable the comparator falling edge interrupt. 1 (ENABLED): Enable the comparator falling edge interrupt. |
RIEN | Rising Edge Interrupt Enable. 0 (DISABLED): Disable the comparator rising edge interrupt. 1 (ENABLED): Enable the comparator rising edge interrupt. |
DACLVL | Comparator DAC Output Level. |
NWPUEN | Negative Input Weak Pullup Enable. 0 (DISABLED): Disable the negative input weak pull up. 1 (ENABLED): Enable the negative input weak pull up. |
PWPUEN | Positive Input Weak Pullup Enable. 0 (DISABLED): Disable the positive input weak pull up. 1 (ENABLED): Enable the positive input weak pull up. |
CMPHYN | Negative Hysteresis Control. 0 (DISABLED): Disable negative hysteresis. 1 (NEG_5_MV): Set negative hysteresis to 5 mV. 2 (NEG_10_MV): Set negative hysteresis to 10 mV. 3 (NEG_20_MV): Set negative hysteresis to 20 mV. |
CMPHYP | Positive Hysteresis Control. 0 (DISABLED): Disable positive hysteresis. 1 (POS_5_MV): Set positive hysteresis to 5 mV. 2 (POS_10_MV): Set positive hysteresis to 10 mV. 3 (POS_20_MV): Set positive hysteresis to 20 mV. |
INVEN | Invert Comparator Output Enable. 0 (DISABLED): Do not invert the comparator output. 1 (ENABLED): Invert the comparator output. |